package top.littlejiang.onlinexam.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import top.littlejiang.onlinexam.common.base.BaseDao;
import top.littlejiang.onlinexam.entity.OlexamUser;



/**
 * <p>
 * OlexamUser Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2020-12-26
 */
public interface OlexamUserMapper extends BaseDao<OlexamUser> {

    /**
     *  根据id查找用户
     * @param userId
     * @return OlexamUser
     * @author chen
     * @since 2021/2/5 14:53
     */
    OlexamUser getUserById(int userId);

    /**
     * 分页查询 用户列表
     * @param p
     * @param wrapper
     * @return
     */
    IPage<OlexamUser> getUserList(Page<OlexamUser> p,@Param(Constants.WRAPPER) Wrapper<OlexamUser> wrapper);
}
